package com.syni.mdd.sjb.common.datatreaure.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity.DxshMinappMemberGrade;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.mapper.DxshMinappMemberGradeMapper;
import com.syni.mdd.sjb.common.datatreaure.service.DxshMinappMemberGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lcc
 * @since 2020-11-13
 */
@Service
public class DxshMinappMemberGradeServiceImpl extends ServiceImpl<DxshMinappMemberGradeMapper, DxshMinappMemberGrade> implements DxshMinappMemberGradeService {

    @Autowired
    DxshMinappMemberGradeMapper dxshMinappMemberGradeMapper;

    @Override
    public DxshMinappMemberGrade findByMemberName(String memberName) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq(DxshMinappMemberGrade.MEMBER_NAME,memberName);
        return dxshMinappMemberGradeMapper.selectOne(queryWrapper);
    }
}
